package cn.itcast.service.impl;


import cn.itcast.domain.SetMeal;
import cn.itcast.mapper.MobileSetmealMapper;
import cn.itcast.service.MobileSetmealService;
import com.alibaba.dubbo.config.annotation.Service;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class MobileSetmealServiceImpl implements MobileSetmealService {

    @Autowired
    private MobileSetmealMapper mobileSetmealMapper;


    public List<SetMeal> findAllSetMeal() {
        List<SetMeal> alls = mobileSetmealMapper.findAlls();
        return alls;
    }

    public SetMeal findAllData(Integer id) {

        return mobileSetmealMapper.findAllSetmealById(id);
    }


    @Test
    public void test() {
        int num = 12;
        SetMeal allSetmeal = mobileSetmealMapper.findAllSetmeal(num);

        System.out.println(allSetmeal);
    }

}
